﻿using BCCommon;
using BCCommon.OAEnums;
using BCDto.Sim.Admin.Admin;
using BCDto.OA.ApplyOrder;
using BCService.OA.ApplyOrder.ServiceFactory;

namespace BCService.OA.ApplyOrder
{
    /// <summary>
    /// OA申请单服务
    /// </summary>
    public interface IApplyOrderService : IOAApplyOrderFactoryService
    {
        /// <summary>
        /// 分页获取申请信息列表
        /// </summary>
        /// <param name="admin">当前登录人员</param>
        /// <param name="pageIndex">分页页码</param>
        /// <param name="pageSize">分页页数</param>
        /// <param name="ascending">是否升序排</param>
        /// <param name="type">申请类型</param>
        /// <param name="status">申请单审核状态</param>
        /// <param name="isMyApproved">是否我审批的</param>
        /// <param name="isMyCreated">由我发起的</param>
        /// <param name="isCopierToMe">抄送给我的</param>
        /// <returns></returns>
        PageableList<ApplyOrderDto> GetList(AdminDto admin, int pageIndex, int pageSize, bool ascending, OAApplyOrderType? type, OAApplyOrderStatus? status, bool? isMyApproved, bool? isMyCreated, bool? isCopierToMe);


    }
}
